SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 67724: A DB2 error might occur when queries that are passed to the DB2 database contain single quotation marks that are not escaped

DetailsHotfixAboutRate It

An error might occur when a query that is being passed to the DB2 database contains an embedded single quotation mark in a character value that is not escaped. The error might look similar to the following:

DB2 ERROR:                                                 
RESULT OF SQL STATEMENT:
DSN00104E ILLEGAL SYMBOL " ". SOME SYMBOLS THAT MIGHT BE LEGAL ARE: AT YEAR YEARS MONTH MONTHS DAY DAYS HOUR HOURS MINUTE MINUTES
A DUMP OF THE SQLCA FOR THE GET DIAGNOSTICS REQUEST FOLLOWS:                                                                    ROW NUMBER: 0 ERROR CONDITION: 1 REASON CODE: 0  
        SQLCODE: -104 SQLSTATE: 42601 SQLERRP: DSNHPARS    

The issue occurs when the following is true:

  • You are running SAS® on the z/OS operating system.
  • Your character value contains a Shift Out (SO), hex code x'0E', before the embedded single quotation mark.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to DB2z/OS9.3 TS1M09.4 TS1M8
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.